﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="cardetail.aspx.vb" Inherits="WebApplication1.cardetail" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
    .auto-style1 {
        color: #FFFFFF;
    }
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="FeaturedContent" runat="server">
    <br />
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
    <br />
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:CarDataString %>" ProviderName="<%$ ConnectionStrings:CarDataString.ProviderName %>" SelectCommand="SELECT [Car Make] AS Car_Make, [Model], [Description], [Image] FROM [carclub] WHERE ([ID] = ?)">
    <SelectParameters>
        <asp:QueryStringParameter Name="ID" QueryStringField="ID" Type="Int32" />
    </SelectParameters>
    </asp:SqlDataSource>
<br />
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataSourceID="SqlDataSource1" CellPadding="4" ForeColor="#333333" GridLines="None">
    <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
    <Columns>
        <asp:BoundField DataField="Car_Make" HeaderText="Car_Make" SortExpression="Car_Make" />
        <asp:BoundField DataField="Model" HeaderText="Model" SortExpression="Model" />
        <asp:BoundField DataField="Description" HeaderText="Description" SortExpression="Description" />
        <asp:ImageField DataImageUrlField="Image" HeaderText="Image">
            <ControlStyle CssClass="carimages" />
        </asp:ImageField>
    </Columns>
    <EditRowStyle BackColor="#999999" />
    <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
    <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
    <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
    <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
    <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
    <SortedAscendingCellStyle BackColor="#E9E7E2" />
    <SortedAscendingHeaderStyle BackColor="#506C8C" />
    <SortedDescendingCellStyle BackColor="#FFFDF8" />
    <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
</asp:GridView>
    <span class="auto-style1">
    <br />
    </span>
<asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" Width="539px" CellPadding="4" ForeColor="#333333" GridLines="None">
        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
        <Columns>
            <asp:BoundField DataField="Author" HeaderText="Author" SortExpression="Author" />
            <asp:BoundField DataField="Comment" HeaderText="Comment" SortExpression="Comment" />
            <asp:BoundField DataField="Title" HeaderText="Title" SortExpression="Title" />
        </Columns>
        <EditRowStyle BackColor="#999999" />
        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
        <SortedAscendingCellStyle BackColor="#E9E7E2" />
        <SortedAscendingHeaderStyle BackColor="#506C8C" />
        <SortedDescendingCellStyle BackColor="#FFFDF8" />
        <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
    </asp:GridView>
    <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:CarDataString %>" ProviderName="<%$ ConnectionStrings:CarDataString.ProviderName %>" SelectCommand="SELECT [Author], [Comment], [Title] FROM [comments] WHERE ([car_fkId] = ?)">
        <SelectParameters>
            <asp:QueryStringParameter Name="car_fkId" QueryStringField="ID" Type="Int32" />
        </SelectParameters>
              
    </asp:SqlDataSource>
    <strong>
    <br />
    <br />
    Add Your Comment Here<br />
    <br />
    </strong><br />
    <br />
    <span class="auto-style1">Name
    <br />
    <br />
  
         <asp:TextBox ID="tb_author" runat="server" Width="313px" ReadOnly="False" AutoCompleteType="DisplayName"  ></asp:TextBox>
         
       
</span>
    <br />
        <br />
    <br />
    <span class="auto-style1">Comment Title<br />
</span><br />
    <asp:TextBox ID="tb_title" runat="server" Width="312px"></asp:TextBox>
    <br />
    <br />
    <span class="auto-style1">Your Comment</span><br />
    <asp:TextBox ID="tb_comment" runat="server" Height="191px" TextMode="MultiLine" Width="310px"></asp:TextBox>
    <br />
    <asp:Button ID="btn_AddComment" runat="server" Text="Add Comment" Width="318px" />
    <br />
    <asp:CheckBoxList ID="CheckBoxList1" runat="server" DataSourceID="TagsDataSource" DataTextField="Tag" DataValueField="ID" RepeatDirection="Horizontal">
    </asp:CheckBoxList>

    Add New Tags Below<strong> (Note: Please Use Commas for each new Tag)</strong><br />
    <asp:TextBox ID="TextBox1" runat="server" Width="531px"></asp:TextBox> <br />
    <asp:SqlDataSource ID="TagsDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:CarDataString %>" ProviderName="<%$ ConnectionStrings:CarDataString.ProviderName %>" SelectCommand="SELECT [ID], [Tag] FROM [tags]"></asp:SqlDataSource>
    <asp:Button ID="Button1" runat="server" Text="Tag This Car" Width="315px" />
    <br />
    <br />
</asp:Content>
